package cnpm.service.impl;

import java.util.List;

import cnpm.dao.BankDAO;
import cnpm.dao.impl.BankDAOImpl;
import cnpm.entity.Bank;
import cnpm.service.BankService;

public class BankServiceImpl implements BankService {

	private BankDAO bDAO;
	
	public BankServiceImpl() {
		bDAO = new BankDAOImpl();
	}
	
	@Override
	public List<Bank> getALlBank() {
		return bDAO.getALlBank();
	}

	@Override
	public Bank getBankByID(int bankID) {
		return bDAO.getBankByID(bankID);
	}

}
